<template>
  <div class="mt-2 small-text">
    <p v-if="!filterActive">
      {{ $t('global.table.items', { count: totalNumberOfCells }) }}
    </p>
    <p v-else>
      {{
        $t('global.table.selectedItems', {
          count: totalNumberOfCells,
          filterCount: filteredItemsCount,
        })
      }}
    </p>
  </div>
</template>

<script lang="ts" setup>
const props = defineProps<{
  filteredItemsCount: number;
  totalNumberOfCells: number;
}>();

const filterActive = computed(
  () => props.filteredItemsCount !== props.totalNumberOfCells,
);
</script>
